#ifndef GOOLNN_CANGYAN_WINDOW_NEWFILE
#define GOOLNN_CANGYAN_WINDOW_NEWFILE

#include <QVBoxLayout>
#include <QScrollArea>
#include <QListWidget>
#include <QHBoxLayout>
#include <QPushButton>
#include <QLineEdit>
#include <QDialog>
#include <QLabel>

#include "window/ImagesManager.hpp"
#include "file/CYFile.hpp"

class NewFile : public QDialog{
    Q_OBJECT

    private:
        QVBoxLayout* layout;

        QHBoxLayout* nameLayout;
        QLineEdit*   nameInput;

        QScrollArea* scrollArea;
        ImagesManager* imagesManager;

        QHBoxLayout* buttonLayout;
        QPushButton* acceptButton;
        QPushButton* cancelButton;

    public:
        NewFile(QWidget* parent = nullptr);
        ~NewFile();
    
    private slots:
        void cancel();
        void accept();

    signals:
        void addTab(CYFile*);

};

#endif
